<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> 
<head>
<meta charset="UTF-8"/>
<title>登陆页面</title>
</head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<body>
<fieldset>
<legend>用户登陆信息</legend>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span th:errors="${userBean.*}"></span></span>
<span th:text="${message}"></span>
<br/>
     <form action="init" th:object="${userBean}" method="post">
     <input name="userId" type="text" />
     <input name="passWord" type="password"/><br/>
     <button type="submit" name="login">登陆</button>
     </form>
     <br/>
     <form action="init4" method="post">
     <button type="submit" name="register">注册</button>
     </form>
   </fieldset>  
</body>
</html>